
 <div class="rightcontent"> 
      <h3 class="dl_bigtit"><span class="dl_postit">已收藏职位</span></h3> 
      <!--有数据时--> 
      <div class="dl_listposition dl_mgtop10"> 
       <h4> <span class=" floatright dl_ft14_grey">未申请</span> <span class="position blue"><a href="detail.html?620025249">学术总监</a> </span> <span class="address">北京市</span> </h4> 
       <ul class="detail clearfix"> 
        <li>职位编号：A620025249</li> 
        <li>截止日期：- - -</li> 
        <li>职位状态：正常</li> 
        <li class="dl_textright"><a href="javascript:void(0)" newid="110020233" class="delete">删除</a> <a href="###" url="/Portal/Resume/ResumeItem?jId=620025249&amp;pId=1" isallowreapply="True" isapplied="False" class=" dl_mglft10 dl_ft12_grey apply">申请&gt;&gt;</a></li> 
       </ul> 
       <div class="dl_bd_btm dl_padt15"></div> 
      </div> 
      <!--e有数据结束--> 
      <!--s无数据--> 
      <div class="dl_more blue dl_ft14">
       <b><a href="index.html">查看更多职位&gt;&gt;</a></b>
      </div> 
      <input id="proId" type="hidden" /> 
     </div> 
    </div> 
    <!--简历内容 e--> 
   </div> 
   <div class="dl_footer"> 
    <p>&copy;2015&nbsp;北京大生知行科技有限公司51talk&nbsp;&nbsp;京ICP备05051632号 京公网安备110108002767号 &nbsp;&nbsp;帮助热线：4006506886</p> 
   </div> 
  </div>  
  <script language="javascript" type="text/javascript">
         $(function () {
             var html = ['<div class="dl_dialog1">',
                                 '	<div class="dl_dialog_wrap">',
                                 '       <div class="dl_dialog_icoqa"><span>请确认是否删除收藏的职位</span></div>',
                                 '	<div class="dl_dialog_btn">',
                                 ' <a href="javascript:void(0);" class="dl_btn_grey1" id="btnSure"><span>确定</span></a>',
                                 '	<a href="javascript:void(0);" class="dl_btn_grey1 dl_mglft10 simplemodal-close"  id="btnClse"><span>取消</span></a>',
                                 '		<div>',
                                 '	</div>',
                                 '</div>'].join("");
             $(".delete").click(function () {
                 $("#proId").val($(this).attr("newId"));
                 $.modal(html, {
                     containerCss: {
                         backgroundColor: "transparent",
                         borderColor: "transparent",
                         padding: 0
                     }
                 });
             });
         });
         $("#btnSure").live("click", function () {
             var id = $("#proId").val();
             ; $.post("DeleteJobCollect", { "id": id }, function (data) {
                 if (data) {
                     window.location.reload();
                 }
             }, "json");
             //window.location.reload();
             $.modal.close();
         });
         
         $(function () {

             var htmlError = ['<div class="dl_dialog1">',
                                 '     <div class="dl_dialog_wrap">',
                                 '       <div class="dl_tocenter">',
                                 '<span class="dl_dialog_icook dl_ft14_grey2"><b>您之前已经成功申请过该职位，请不要重复申请！</b>',
                                 '</span>',
                                 '</div>',
                                 '     <div class="dl_dialog_btn">',
                                 ' <span class="dl_green1"></span>',
                                 '              <div>',
                                 '     </div>',
                                 '</div>'].join("");
             
             $(".apply").click(function () {
                 var isAllowReApply = $(this).attr("isAllowReApply");
                 var isApplied = $(this).attr("isApplied");
                 if (isAllowReApply == "True" && isApplied == "True") {
                     window.location = $(this).attr("url");
                 }
                 else if (isAllowReApply == "False" && isApplied == "True") {
                     $.modal(htmlError, {
                         containerCss: {
                             backgroundColor: "transparent",
                             borderColor: "transparent",
                             padding: 0
                         }
                     });
                 }
                 else if (isApplied == "False") {
                     window.location = $(this).attr("url");
                 }
                 function a() {
                     $.modal.close();
                 }
                 setTimeout(a, 5000);
             });
         });

</script> 
  <script language="javascript" type="text/javascript">

        function SetCss() {
            var win = window.location.href;
            if (win.indexOf("Apply") != -1) {
                $("#myapply a").addClass("current");
            }
            else if (win.indexOf("ResumeItem") != -1) {
                $("#myresume a").addClass("current");
            }
            else if (win.indexOf("EditPwd") != -1) {
                $("#changepwd a").addClass("current");
            }
        }
        SetCss();

        $(function () {

            setInterval(function () {
                try {
                    DrawImage($("#logoImg"), '350', '80');
                } catch (e) {
                }
            }, 100);
        });

        function DrawImage(ImgD, FitWidth, FitHeight) {
            var image = new Image();

            image.src = $(ImgD).attr("src");

            if (image.width > 0 && image.height > 0) {
                if (image.width / image.height >= FitWidth / FitHeight) {
                    if (image.width > FitWidth) {
                        $(ImgD).css("width", FitWidth);
                        $(ImgD).css("height", (image.height * FitWidth) / image.width);
                    } else {
                        $(ImgD).css("width", image.width);
                        $(ImgD).css("height", image.height);
                    }
                } else {
                    if (image.height > FitHeight) {
                        $(ImgD).css("height", FitHeight);
                        $(ImgD).css("width", (image.width * FitHeight) / image.height);
                    } else {
                        $(ImgD).css("width", image.width);
                        $(ImgD).css("height", image.height);
                    }
                }
                $(ImgD).show();
            }
        }
    </script>  
 </body>
</html>